﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title></title>
</head>
<body>

    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tbody>
            <tr>
                <td>
                    <table class="dashboardOperationsBarOuter" cellpadding="0" cellspacing="0" width="100%">
                        <tbody>
                            <tr>
                                <td class="dashboardOperationsBar">
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                        <tbody>
                                            <tr>
                                                <td align="left" valign="middle">
                                                    <!-- Toolbar Content Goes Here -->
                                                    <table border="0">
                                                        <tbody>
                                                           
                                                        </tbody>
                                                    </table>
                                                </td>
                                                <td style="padding-right: 0px;" align="right" valign="middle">
                                                    <table border="0px" cellpadding="0" cellspacing="1">
                                                        <tbody>
                                                            <tr>
                                                                <td style="white-space: nowrap;" align="right" valign="middle">
                                                                </td>
                                                                <td class="" style="padding: 0px; white-space: nowrap;" align="right" valign="middle">
                                                                    &nbsp;
                                                                </td>
                                                                <td class="" style="padding-left: 2px; padding-right: 4px;" align="right" valign="middle">
                                                                    &nbsp;
                                                                </td>
                                                                <td class="" style="padding-right: 10px;" align="right" valign="middle">
                                                                    &nbsp;
                                                                </td>
                                                                <td class="" style="white-space: nowrap;" align="right" valign="middle">
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <!-- Place Content That you want to appear between the Toolbar and the Tab Strip Here  -->
                </td>
            </tr>
        </tbody>
    </table>
    <div style="padding: 0px;">
        <table id="tabTablectl00_ucTabStrip" style="border: medium none; width: 100%;" class="dashboardTabStrip"
            cellpadding="0" cellspacing="0">
            <tbody>
                <tr>
                    <td id="ctl00_ucTabStrip_tdStretch" align="left">
                        <div id="ctl00_ucTabStrip_divTabContainer" style="overflow: hidden;">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table class="dashboardTabStripBase" border="0" cellpadding="0" cellspacing="0" width="100%"
                            height="5">
                            <tbody>
                                <tr>
                                    <td class="tabScrollEnabled" id="btnScrollLeft" align="left" valign="middle">
                                        <img src="../../Content/images/common/arrowleft_grey.gif" id="ctl00_ucTabStrip_imgScrollLeft"
                                            style="display: none;" align="middle">
                                    </td>
                                    <td width="100%">
                                    </td>
                                    <td class="tabScrollEnabled" id="btnScrollRight" align="right" valign="middle">
                                        <img src="../../Content/images/common/arrowright_grey.gif" id="ctl00_ucTabStrip_imgScrollRight"
                                            style="display: none;" align="middle">
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
        <table id="ctl00_tblMain" style="padding: 3px; border-top: 1px solid rgb(153, 153, 153);
            border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="100%">
            <tbody>
                <tr>
                    <td style="border: medium none; margin: 0px; border-collapse: collapse;" align="center"
                        valign="top" width="100%">
                        <table style="border-style: none; border-color: inherit; border-width: medium; border-collapse: collapse;
                            margin: 0px; padding: 0px; height: 268px; width: 96%;" border="0" cellpadding="0"
                            cellspacing="0">
                            <tbody>
                                <tr>
                                    <td style="padding: 2px; width: 100%;" colspan="1" rowspan="1" align="center" valign="top">
                                        <div >
                                           
                                            <div class="t">
                                                <div class="b">
                                                    <div class="l">
                                                        <div class="r">
                                                            <div class="bl">
                                                                <div class="br">
                                                                    <div class="tl">
                                                                        <div class="tr">
                                                                            <div class="content">
                                                                                <style type="text/css">
                                                                                    .style9
                                                                                    {
                                                                                        width: 10%;
                                                                                    }
                                                                                    .style10
                                                                                    {
                                                                                        width: 17%;
                                                                                    }
                                                                                    .style11
                                                                                    {
                                                                                        width: 15%;
                                                                                    }
                                                                                    </style>
<table style="padding-left: 10px; width: 100%;">

<tr>
<td align="left" valign="top">

<table id="tblprojects" width="100%" border="0" cellspacing="0" cellpadding="0" class="display">
    <thead>
        <tr>
            <th id="pcode" align="left" height="30" class="style9">
                <a href="#">Project Code</a>
            </th>
            <th id="pname" align="left" class="style10">
                <a href="#">Project Name</a>
            </th>
            <th id="pdtype" align="left" class="style9">
                <a href="#">Project Type</a></th>                                                                                                            
            <th id="pdesc" align="left" class="style11">
                <a href="#">Description</a>
            </th>                                                                                                            
            <th id="psdate" align="left" class="style11">
                <a href="#">Start Date</a>
            </th>
            <th id="pedate" width="10%" align="left">
                <a href="#">End Date</a>
            </th>
            <th id="edit" width="2%">
            </th>
            <th id="Delete" width="2%">
            </th>
        </tr>
    </thead>
    <tbody>
        <%
foreach (PM_Projects project in (List<PM_Projects>)ViewData["ProjectList"])
{

        %>
        <tr>
            <td headers="pcode" class="oddrow-mdl" align="left" height="12" 
                style="width: 10%">
               <%= project.ProjectCode%>
            </td>
            <td headers="pname" class="oddrow-mdl" align="left" style="width: 10%">
                 <%= project.ProjectName%>
            </td>
            <td headers="pdtype" class="oddrow-mdl" align="left" style="width: 10%">
                 <%= project.PM_Types.TypeName%></td>
            <td headers="pdesc" class="oddrow-mdl" align="left" style="width: 22%">
                <%= project.Description%>
            </td>
            <td headers="psdate" class="oddrow-mdl" align="left" style="width: 15%">
                <%=String.Format("{0:ddd, MMM d, yyyy}", project.ProjectStartDate.Date)%>
            </td>
            <td headers="pedate" class="oddrow-mdl" align="left" style="width: 15%">
                <%= String.Format("{0:ddd, MMM d, yyyy}",project.ProjectEndDate.Date)%>
            </td>
            
            <td headers="edit" class="evnrow-mdl" align="left" width="20%">
                <a href="#"><strong>
                    <%--<%=Html.ActionLink<UserController>(c => c.EditManager(manager.ProviderUserKey.ToString()), "Edit")%>--%>
                    <a class="link" onclick="lnkEditProject_onClick('<%= project.ProjectId%>');"
                            title="Edit User Roles" href="#" >Edit Project </a>
                </strong></a>
            </td>
            <td headers="Delete" class="evnrow-mdl" align="left" width="2%">
                <a href="#"><strong>
                   <a class="link" onclick="lnkAssignUsers_onClick('<%= project.ProjectId%>');"
                            title="Assign Users to this project" href="#">Assign Users </a>
                </strong></a>
            </td>
        </tr>
        <%} %>
    </tbody>
</table>
</td>
</tr>

</table>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>


</body>
</html>
